package com.pajk.user.dal.mapper;

import com.pajk.user.model.UserRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* Created by peide.zhang on 4/29/14.
        */
public interface UserReverseRelationMapper {

    public void insertUserReverseRelation(UserRelation relation);

    public UserRelation getUserReverseRelationByFollowerIdAndFolloweeId(@Param("followerId")Long followerId,
                                                                        @Param("followeeId")Long followeeId);

    public List<Long> getFollowerIdsByFolloweeId(@Param("followeeId")Long followeeId);

    public int deleteUserReverseRelation(@Param("followerId")Long followerId,@Param("followeeId")Long followeeId);
}
